define(['app'],function(app){return {module: function($scope, $http, eventBusService, httpService, params) {

		httpService.post(app.urls.teacher_selectById,{"id":params.id},function(data){
			if("0000" === data.code){
				$scope.form = data.data;
			}else{
				alert(data.msg);
			}
		});

		$scope.saveForm = function(){
			if($scope.formCheck()) {
				httpService.post(app.urls.teacher_updateYhm,$scope.form,function(data){
					if("0000" === data.code){
						eventBusService.publish("content.page.reload", data);
						eventBusService.publish("modal.page.close", {});
					}else{
						alert(data.msg);
					}
				});
			}
		}
	}}});